package com.totoro.util;

import org.springframework.security.authentication.encoding.Md5PasswordEncoder;

//MD5加密工具类
public class EncryptUtil {

	// 密码加密静态方法
	public static String encryptPassWord(String username, String password) {
		// MD5加密实体类
		Md5PasswordEncoder encoder = new Md5PasswordEncoder();
		return encoder.encodePassword(username, password);
	}
}
